package com.filiebo.demo.charact1;

public class ThreadDemo {

    public void threadDemo1(){
        while (true){
            System.out.println(Thread.currentThread().getName()+"正在执行1");
        }
    }



    public void threadDemo2(){
        while (true){
            System.out.println(Thread.currentThread().getName()+"正在执行2");
        }
    }
}
